package com.yc.navy.goods.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yc.navy.goods.dto.AddressInfoDTODTO;
import com.yc.navy.goods.dto.ShopInfoDTOO;

@FeignClient(name="user-server", fallback = IUserFeignClient.UserFeignClient.class)
public interface IUserFeignClient {
	@RequestMapping("/addrs/myaddr")
	AddressInfoDTODTO myaddr (@RequestParam Integer mid);
	
	@RequestMapping("/shoper/shopone")
	ShopInfoDTOO Shopone(@RequestParam Integer sid);
	
	
	public static class UserFeignClient implements IUserFeignClient{

		@Override
		public AddressInfoDTODTO myaddr(Integer mid) {
			return null;
		}

		@Override
		public ShopInfoDTOO Shopone(Integer sid) {
			return null;
		}
		
	}
}
